<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../js/framework/jquery-1.11.3.min.js" ></script>
<script type="text/javascript">
$(function(){
	$("#send").click(function(){
		var request_url = $("#url").val();
		var request_data = $("#params").val();
		$.ajax(function(){
			
		});
		 $.ajax({ 
			 url:request_url, 
			 type:'POST', 
			 dataType:'JSON',
			 data: request_data,
			 success:function(data){
			   alert(data.message);
			 }
			
		});
	});
	
});
</script>
</head>
<body>
接口地址：<input type="text" id="url" size=60><br><br>
请求参数：<textarea id="params" cols="30" rows="5"></textarea><br><br>
返回结果：<textarea id="result" cols="30" rows="5"></textarea><br><br>
<input type="button" id="send" value="发送请求"/>&nbsp;&nbsp;<input type="reset" id="reset" value="重置"/><br><br>
</body>
</html>